package com.em.tuppence.web.security.openid;

import org.springframework.security.openid.OpenIDAttribute;

public enum UsedOpenIDAttribute {

	AX_FIRST_NAME ("AX_FirstName", "http://axschema.org/namePerson/first"),
    AX_LAST_NAME  ("AX_LastName",  "http://axschema.org/namePerson/last"),
    EMAIL         ("EMAIL",        "http://schema.openid.net/contact/email"),
    LAST_NAME     ("LAST_NAME",    "http://schema.openid.net/namePerson/last"),
	FIRST_NAME    ("FIRST_NAME",   "http://schema.openid.net/namePerson/first"),
	NAME_PERSON   ("NAME_PERSON",  "http://schema.openid.net/namePerson");
			
		
    private OpenIDAttribute openIdAttribute;
    
    private UsedOpenIDAttribute(final String name, final String type) {
    	openIdAttribute = new OpenIDAttribute(name, type);
    	openIdAttribute.setRequired(true);
    }

	public OpenIDAttribute getOpenIdAttribute() {
		return openIdAttribute;
	}

}